<!DOCTYPE html>
<html>
<head>
    <title>Number Example 6</title>
    <script type="text/javascript">
          
        var num1 = parseInt("AF", 16);        //175
        var num2 = parseInt("AF");            //NaN

        alert(num1);
        alert(num2);


    </script>

</head>
<body>
  
</body>
</html>